////////////////////
// SystemLog
////////////////////
import { systemLog as systemLogV2 } from '../mv2/systemLog'
/**
 * Use the `Browser.systemLog` API to record Chrome system logs from extensions.
 *
 * Permissions: "systemLog"
 *
 * Note: Only available to policy installed extensions.
 * @platform ChromeOS only
 * @since Chrome 125
 */
export namespace systemLog {
    export interface MessageOptions {
        message: string;
    }
    /**
     * Adds a new log record.
     * Can return its result via Promise in Manifest V3 or later.
     */
    export function add(options: MessageOptions): Promise<void> {
        return new Promise((resolve, reject) => {
            systemLogV2.add(options, () => {
                resolve()
            })
        })
    }
}